<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>用户金币流水管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/goldcointraderecord/goldcoinTradeRecord/">用户金币流水列表</a></li>
		<li class="active"><a href="${ctx}/goldcointraderecord/goldcoinTradeRecord/form?id=${goldcoinTradeRecord.id}">用户金币流水<shiro:hasPermission name="goldcointraderecord:goldcoinTradeRecord:edit">${not empty goldcoinTradeRecord.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="goldcointraderecord:goldcoinTradeRecord:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="goldcoinTradeRecord" action="${ctx}/goldcointraderecord/goldcoinTradeRecord/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>		
		<div class="control-group">
			<label class="control-label">关联 goldcoin_account：</label>
			<div class="controls">
				<form:input path="accountid" htmlEscape="false" maxlength="8" class="input-xlarge required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">关联 goldcoin_account_detail：</label>
			<div class="controls">
				<form:input path="detailid" htmlEscape="false" maxlength="8" class="input-xlarge required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">关联 金币表 goldCoin：</label>
			<div class="controls">
				<form:input path="goldcoinpoolid" htmlEscape="false" maxlength="8" class="input-xlarge required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">记录状态,00-获取，01-使用，02-过期，03冲正，04-作废：</label>
			<div class="controls">
				<form:input path="recordType" htmlEscape="false" maxlength="2" class="input-xlarge required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">recordType =00领取金币数量，recordType=01使用金币数量：</label>
			<div class="controls">
				<form:input path="goldnumber" htmlEscape="false" maxlength="8" class="input-xlarge required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">机构id：</label>
			<div class="controls">
				<sys:treeselect id="office" name="office.id" value="${goldcoinTradeRecord.office.id}" labelName="office.name" labelValue="${goldcoinTradeRecord.office.name}"
					title="部门" url="/sys/office/treeData?type=2" cssClass="" allowClear="true" notAllowSelectParent="true"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">节点类型，00-支付，01-兑换为券，02-赠送他人，03-系统作废，04-过期,10-登录,11-注册,12-绑卡,13-投资,14-充值,15-微信绑定,16-投资分享,17-主动发放,18-钱袋,19-出国金融：</label>
			<div class="controls">
				<form:input path="nodetype" htmlEscape="false" maxlength="2" class="input-xlarge required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">变更前本批次可用金币数-作为用户获取某批次金币使用流水来理解：</label>
			<div class="controls">
				<form:input path="beforeuse" htmlEscape="false" maxlength="8" class="input-xlarge required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">变更后可用金币数-作为用户获取某批次金币使用流水来理解：</label>
			<div class="controls">
				<form:input path="afteruse" htmlEscape="false" maxlength="8" class="input-xlarge required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">易贷/转赚中用户id：</label>
			<div class="controls">
				<form:input path="userid" htmlEscape="false" maxlength="8" class="input-xlarge required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">业务号：</label>
			<div class="controls">
				<form:input path="businessId" htmlEscape="false" maxlength="8" class="input-xlarge required"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">备注信息：</label>
			<div class="controls">
				<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="255" class="input-xxlarge "/>
			</div>
		</div>
		<div class="form-actions">
			<shiro:hasPermission name="goldcointraderecord:goldcoinTradeRecord:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>
</body>
</html>